package com.itheima.dao;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface OrderDao {
    long findByOrder(Order order);

    void add(Order order);

    Map<String,Object> findById(Integer id);

    long findTodayOrderNumber(String todayDate);

    long findTodayVisitsNumber(String todayDate);

    long findOrderNumber(@Param("startDate") String startDate, @Param("endDate") String endDate);

    long findVisitsNumber(String startDate);
}
